package com.abe.quick.vm

import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.abe.libcore.utils.ThreadPoolUtils
import com.abe.libquick.utils.NormalUtils
import java.util.*

open class NormalKtxVM : ViewModel() {
    private val timeData: MutableLiveData<String> = MutableLiveData()

    open fun timeData(): MutableLiveData<String> {
        return timeData;
    }

    fun timeAction() {
        ThreadPoolUtils.execute(Runnable {
            timeData.postValue(NormalUtils.dateToString("yyyy-MM-dd HH:mm:ss", Date()))
        })
    }
}